import request from "../utils/requset";

// 获取轮播图
export const getCarouselInfos = () => {
  return request.post("/resources/carousel");
};
interface IFloorRes {
  code: string;
  Product: any;
}
// 获取楼层产品信息
export const getFloorGoods = (categoryName: string) => {
  return request.post<any, IFloorRes>("/product/getPromoProduct", {
    categoryName,
  });
};
// 获取热门产品信息
export const getHotGoods = (categoryName: string[]) => {
  return request.post<any, IFloorRes>("/product/getHotProduct", {
    categoryName,
  });
};
